import socket
import random

obj = socket.socket()

HID = "F0012"




#测试使用的代码，自动生成不同的HID



obj.connect(("120.78.131.5",8000))


str='''{
  "cmd": "getlist",
  "tx_hid": "xxxxx_1",

  "index": 1
}'''


obj.send(str.encode("ascii"))



 
print(obj.recv(1024))
input("q to exit()")
    


